<div>
<h4> List of Contacts </h4>
</div> 

<div>
jfdlsf

<table class='cbv_index'>
<tr>
<th> First Names </th>
<th> Last Name </th>
<th> Phones </th>
<th> Category </th>
<th> Edit Link </th>
<th> Database id </th>
</tr>

{% for contact in contact_list %}
  <tr class="{% cycle odd_row,even_row %}">
   <td> {{ contact.first_name }} </td>
   <td> {{ contact.last_name }} </td>
  
   <td>
     <ul>
      {% for phone in contact.get_my_phones %}
        {{ phone.phone_number }}
      {% endfor %}
     </ul>
   </td> 

   <td> 
     <ul>
      {% for type in contact.get_my_contact_types %}
        {{ type }} 
      {% endfor %}
     </ul>
    </td>
   <td> 
     <a href = "{% url formstates_wjContact.contacts.views.contact_edit main_object_id=contact.id %}">  
     {{ contact }}    
     </a> 
   </td>  
   <td> {{ contact.id }} </td>           
  </tr>
  
{% endfor %}
</table>
</div>
